package cn.zkld.service.impl;

import cn.zkld.dao.GoodsMapper;
import cn.zkld.model.GoodsInfo;
import cn.zkld.service.SelectGoodsPriceService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * Created by 李景辉 on 2017/12/6.
 *
 * 商品按价格排序实现类
 */
@Service
public class SelectGoodsPriceServiceImpl implements SelectGoodsPriceService {
    @Resource
    private GoodsMapper goodsMapper;

    /**
     * 查询商品列表按价格排序
     * @return
     */
    public List<GoodsInfo> selectGoodsPrice(Map map){
        List<GoodsInfo> list=goodsMapper.selectGoodsPrice(map);
        return list;
    }
}
